//
//  UINavigationControllerAdditions.m
//  Tint
//
//  Created by Kevin Wu on 2/22/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import "UINavigationControllerAdditions.h"

@implementation UINavigationController (Tint)


#pragma mark - Creating

+ (UINavigationController *)navigationWithRoot:(UIViewController *)root {
    return [[[self alloc] initWithRootViewController:root] autorelease];
}

+ (UINavigationController *)navigationWithRoot:(UIViewController *)root title:(NSString *)title image:(UIImage *)image {
    UINavigationController *nc = [[self alloc] initWithRootViewController:root];
    nc.tabBarItem.title = title;
    nc.tabBarItem.image = image;
    return [nc autorelease];
}

@end
